package org.tissou.client.Services.importer;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;
import org.tissou.client.DonneesAAfficher.Donnees_Base;
import org.tissou.client.Services.MonException;

/**
 * Created by IntelliJ IDEA.
 * User: Manu
 * Date: 25 juil. 2009
 * Time: 14:22:29
 * To change this template use File | Settings | File Templates.
 */
public interface RecupererTransactions extends RemoteService {
  Donnees_Base recupererTransactions() throws MonException;

  /**
   * Utility/Convenience class.
   * Use RecupererTransactions.App.getInstance() to access static instance of RecupererTransactionsAsync
   */
  public static class App {
    private static final RecupererTransactionsAsync ourInstance;

    static {
      ourInstance = (RecupererTransactionsAsync) GWT.create(RecupererTransactions.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "RecupererTransactions");
    }

    public static RecupererTransactionsAsync getInstance() {
      return ourInstance;
    }
  }
}
